package com.genius.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@Data
@PropertySource("classpath:token.properties")
@ConfigurationProperties(prefix = "token")
public class TokenProperties {

    // 令牌密钥
    private String secret;

    // 令牌有效期
    private String expireTime;

}